package org.freedom.imarket.util.converter;

import org.springframework.core.convert.converter.Converter;
import org.springframework.core.convert.support.DefaultConversionService;

public class ApplicationConversionService extends DefaultConversionService {
        
        private Converter[] converters = new Converter[0];

        
        
        
        public Converter[] getConverters() {
                return converters;
        }

        public void setConverters(Converter[] converters) {
                this.converters = converters;
                
                for (int i = 0; i < converters.length; i++) {
                        Converter converter = converters[i];
                        addConverter(converter);
                }
                
        }

}
